package com.hydl.power.service.impl;

import com.hydl.power.mapper.PushMapper;
import com.hydl.power.pojo.Push;
import com.hydl.power.service.PushService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PushServiceImpl implements PushService {


    @Autowired
    private PushMapper pushMapper;


    @Override
    public List<String> getClientId(String projectId) {
        return pushMapper.getClientId(projectId);
    }

    @Override
    public void addPush(Push push) {
        pushMapper.addPush(push);
    }

    @Override
    public Push getPushByClientId(String clientId) {
        return pushMapper.getPushByClientId(clientId);
    }
}
